// 座位--表现层
var express = require('express');
var router = express.Router();
const {addData} = require("../service/seatsService")//自行引对应service方法

router.post('/addSeats',async function (req, res, next) {//添加座位数据
    // console.log(req.body);
    var {arryData}=req.body;
    arryData= JSON.parse(arryData)
    for (let i = 0; i < arryData.length; i++) {
     await addData(arryData[i])  
    }
  });
module.exports = router;